<?php 
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
require_once('librarie/lib.class.php');

//Присоединяемся к базе данных.
$adres = 'localhost';
$username = 'root';
$password = '123456';
$DBName = 'gb';
new connectDB($adres,$username,$password,$DBName);

//Определяем переменные.
$id = $_POST['id'];
$mess = $_POST['outmess'];

//Выводим комментируемое сообщение.
?>
<!DOCTYPE html>
<html>
<head>
<title>Комментарий</title>
<meta charset = "utf-8">
<link rel = "stylesheet" type = "text/css" href = "style.css">
</head>
<body>
<form method = "post" action = "comm.php">
<table>
<tr>
<td>
<input type = "text" name = "comment_id" value = "<?php echo("$id");?>">
</td>
</tr>
<tr>
<td>
<input type = "text" name = "mess" value = "<?php echo("$mess");?>"readonly>
</td>
</tr>
<tr>
<td>
<textarea name = "comment"></textarea>
</td>
</tr>
<tr>
<td>
<input type = "submit" name = "submit" value = "сохранить">
</td>
</tr>
</table>
</form>
</body>
</html>